<%@ page language="java" isELIgnored="false"
	contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!doctype html>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<head>
<%-- <link href="<%=path%>/styles/basecss.css" rel="stylesheet">
<link href="<%=path%>/other/css/bootstrap-table.css" rel="stylesheet"> --%>
<link href="<%=path %>/styles/bootstrap.css" rel="stylesheet">
<link href="<%=path %>/other/css/styleindex.css" rel="stylesheet" />
<link href="<%=path %>/other/css/layout.css" rel="stylesheet" />
<script src="<%=path %>/script/jquery-1.11.2.min.js"></script>
<script src="<%=path %>/other/js/bootstrap.min.js"></script>
</head>

<body>
	
<body data-spy="scroll" data-target=".navbar-scroll">
	<div id="layout">
		<div class="header ">
			<div class="container">
				<div class="logo">
					<a href='/' title="人才测评系统">人才测评系统 
				</div>
				<div class="more-option">
					<a href='/user/logout' class="user_Close ajax-post">
					<img  src="<%=path%>/images/login/close.jpg">退出</a>
				</div>
			</div>
		</div>


		<div class="container">

			<!-- 侧边导航栏 -->
			

			<!-- 主体内容区 -->
		
	 <div class="container-fluid">
		<div class="row">
			<div class="panel-body ">
				<span><span>
			</div>
			<div class="container-main col-sm-12">
				<div class="adv-table">
					<div id="hidden-table-info_wrapper"
						class="dataTables_wrapper form-inline" role="grid">
						<div id="post_content">
						</div>
					</div>
				</div>
			</div>
		
						<div style="margin-top: 150px; width: 98%; margin-left: 1%">
			<c:if test="${!empty messages}">
		       	<div style="height: 20px;margin-left:10px"><h2>留言回复区</h2>
			</div>

				<c:forEach items="${messages}" var="item">
							
							<div
								style="border: 1px solid #ccc; -webkit-box-shadow: 0px 3px 30px rgba(0, 0, 0, 0.1) inset; -webkit-border-bottom-right-radius: 6px 50px; width: 100%; height: 122px; margin-top: 20px">
								<div style="width: 30%; float: left;">
									<span class="label" style="color: grey">${item.fromUserName}</span>
									<img alt="头像"
									   <c:if test="${item.userImage ==null}">
										src="<%=path%>/images/login/empty_head.jpg"
										</c:if>
										<c:if test="${item.userImage!=null }">
										src="<%=path%>/${item.userImage }"
										</c:if> 
									style="width: 120px; height: 120px;" class="img-circle" />
								</div>
								<div style="width: 70%; float: left; height: 120px;">
								    <div style="float:right;margin-right:10px;">
								      <span> ${item.recieve }</span>
								    </div>
									<div style="margin-top: 50px">
										<p> ${item.content}   </p>
									</div>
								</div>
							</div>
						</c:forEach>
            </c:if>
            
            <c:if test="${ empty messages}">  
           	<div style="height: 20px;margin-left:10px"><h4>暂时还没有留言,快来抢占沙发吧</h4>
            </c:if>
			</div>
             

		<div style="height:200px">
		
		<div><button id="reply" class="btn btn-info" style="margin:20px;" >我要留言</button></div>
		<div id="post_content02" ></div>
		</div>

	</div> 
	</div>


	<script type="text/javascript">
		
	</script>
	<script type="text/javascript" src="<%=path%>/script/jquery.hDialog.js"></script>
	<script type="text/javascript" src="<%=path%>/script/pm/postDetail.js"></script>
</body>

</html>